<include file="../Public/_header.html" />
<div class="so_main">
  	<div class="page_tit">新增价格</div>
  <style>
  	.form2 dl{
  		float: left;
    	width: 50%;
    }
  </style>
  <div class="form2">
  	<form method="post" 
  				action="{:U('/Price/doAddPrice')}" >
  		<div class="clear"></div>
   	<dl class="lineD" style="font-weight:bold;">
      <dt style="padding: 5px 0px 8px 0px;">基本信息：</dt>
    </dl>
    <dl class="lineD">
				<dt style="color:red;">是否生效：</dt>
				<dd>
					<span>
						<input name="enable" type="checkbox" checked = "checked"
							value="Y">
						钩选为生效
					</span>
				</dd>
		</dl>
    <dl class="lineD">
      <dt>商户：</dt>
      <dd>
      	<php>$partner_id=getParnterIdByGoodsId($goods_id);</php>
        <input id="partnerdesc" type="text" value="{:getParnterTitleByGoodsId($partner_id)}"
					        onclick="k_pop_syncSearch('partner_id'
					        													,'partnerdesc'
					        													,'选择商户'
					        													,'{:U('Admin://Partner/getJson')}'
					        													,function(){ $('#goodsdesc').click(); }
					        													,function(){ $('#goodsdesc').val('');$('#goods_id').val(''); })" 
					        readonly >
					        <input id="partner_id" type="hidden" value="{$partner_id}">
      </dd>
    </dl>
    
    
    <dl class="lineD">
      <dt>商品：</dt>
      <dd>
      	<input id="goodsdesc" type="text" value="{:getGoodsTitle($goods_id)}"
					        onclick="k_pop_syncSearch('goods_id'
					        													,'goodsdesc'
					        													,'选择商品'
					        													,'{:U('Admin://Goods/getJson',array('partner_id'=>''))}'+$('#partner_id').val()
					        													,null
					        													,null)" 
					        readonly >
					        <input name="goods_id" id="goods_id" type="hidden" value="{$goods_id}">
					      
      </dd>
    </dl>
    
    
    <dl class="lineD">
      <dt>进货价：</dt>
      <dd>
      	<input type="text" name="in_price" value="">
      </dd>
    </dl>
    
    <dl class="lineD">
      <dt>市场价：</dt>
      <dd>
      	<input type="text" name="market_price" value="">
      </dd>
    </dl>
    
    <dl class="lineD">
      <dt>进货量：</dt>
      <dd>
        <input type="text" name="total_number" value="">
      </dd>
    </dl>
    
    <dl class="lineD">
      <dt>销售日：</dt>
      <dd>
        <input type="text" name="start_time" onfocus="rcalendar(this);"
								value="" readonly>
      </dd>
    </dl>
		
    <dl class="lineD">
      <dt>截止日：</dt>
      <dd>
        <input type="text" name="expire_time" onfocus="rcalendar(this);"
								value="" readonly>
      </dd>
    </dl>

    <div class="clear"></div>
    <div class="page_btm" style="padding: 18px 0 18px 0;text-align: center;">
      <input type="submit" class="btn_b" value="提交" />
    </div>
    </form>
  </div>

</div>
<include file="../Public/_footer.html" />